package cn.zhx.xa.model.dto.role;


import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
@Schema(description = "新增/修改角色请求参数")
public class SysRoleAddOrUpdateDto {
    @Schema(description = "角色id")
    private Long id;

    @Schema(description = "角色名")
    @NotBlank(message = "角色名不能为空")
    private String roleName ;

    @Schema(description = "角色code")
    @NotBlank(message = "角色code不能为空")
    private String roleCode;
}
